Learn R Programming

rflow (version 0.0.0.9000)

Prepare Text Data: Prepare Text Data

Description

This function loads/prepares data for text classification

Usage

prepareTextData(fileName, dataType = "train", targetColInd = 0, predictorColInd = 2, delimiter = ",")

Arguments

fileName
Path to the data
dataType
Whether this is 'train' or 'test' data
targetColInd
The column index of the target variable (labels)
predictorColInd
The column index of the predictor (text)
delimiter
The delimiter used to parse the data